Plans added and listed but some error while listing after insertion