fixed fp bug