bugfix

removing useless check