Fixed minor bug in error checking showtask()