Added a fix for when there are no spots declared