Fixed wrong condiction