fixed free page bug