Fix isFirstOnLine to account for floating blocks