Fix for incorrectly assigning an ID to cal in some cases.  Bug was breaking buttons for killing/resetting calendar.