Fixed errors, plugin now works with Beta 1.5.2