fixed critical error