Fixed wrong conditional