fix some wrong checks
Fixes some localization bugs