Moved stick and unstick post conditional inside check of data['sticky']