fixed a "bug"