fixed - error when incorrect data input