sprite was not initialized before its position was set