Fixing some bugs in reg form 21513 3 57am