Fix minimal bug