fixed some bugs in the instagram feed script