fixed error in frame