fix bugs in getFrame() that prevented it from starting and stopping corretly