fix frame issue