fixing issues in buy time selection