fixed a bug in subscriptions

@HebaElSobky please review me