Use motion-require correctly
We can use motion-support in class definitions
Finally fixed crash when adding attachments