fixed sprite memory initialisation