-fix condition in costructor