fix to datetime binding