fix bug frame based