fixed error will be printed every time is executed