fixing video scaling