Fixed duplicate code bug
Merge remote-tracking branch 'upstream/develop' into develop