fix bug for movie recording