Fix crash when bed applied outside of minion task
Fix compile error and view index serialization