Fixed flickering frames problem slightly