fixed calling erroes