fixed minimal bug