fix bugs and test video