Fixed calculating of immature