fixed the apply form issue