Fixed a bug related with error functions