Fixes problem with partial day data