fix day bug, added print in exception