Fixed bug with deleting shifts not working correctly