Fixed problem in fullscreen directive