Fixed a bug in a frame