Fixed bug with adaptModel not having lockedAttributes