Logic mistake