Fixed wrong range checking