Fixes app crash on AM PM conversion problem