Fixed server-side crash when interacting with AE. Fixes #14, #15