Bugfix in compile(). Need to return object not JSON strong