fixed sprite problems