fix first to last floor issue