fixing beforeCasting - Fixing frequent dates picker-