fixed a bug when getting frame from controller