Fixed bug where function cannon and music boxes without distances defined failed to run