fixed bug in set ahead date