Bug fix for open/8181 modified the fix so the elements are loaded into vars whcih are then checked