Minor change

- error handling in there is no posts in the previous shift