Fix problem when loading video player