Fixed error messages on console