fixed issue with invalid variable types