Error reporting not initialized bug fixed