Added safety check and little bugfix to double sided crystal ball function