I tested the code with both 2.2 and 2.3.3 and there were no issues.