fixed sprite errors