Fixed bug in stagin. Commit to develop branch.