Last command failed exception error fix