fixing last error