Fixed drawFrame