Prevent invalid variables