Fix nasty bug by using ordinal with parseInt