Bug fix on the create frame feature