Fixed invalid return value in set method.