Fixed mistake in the coordinate viewer and fixed the sprite data not updating when the type is changed.