fixed days being string bug