Fixed undefined credential variable.
Merge branch 'develop'