Fix half-to/half-past bug