a bug in a if-condition was fixed