Fixing the bugs in shader program manager.