bugfixes and define.amd property