video event handler fix