Small lasterror fix