Cannot find UI Element only if I run the Workflow on Studio

When I run the workflow on robot tray, browser/window that I want to use show up on top, and it works as it supposed to. However, it does not show up on top (running background) and cause “Cannot find UI Element” error if I run the workflow on studio.
Does anyone know why?
(I already used “maximize window” and " show window" activity)