Fixed error when no leap present