fixed API issue on deleting shifts