Fixed some errors in code (isSomethingWrong input)