Error reporting fixed