Fix for #1274
Merge pull request #1280 from ghost1227/master

Fix for issue #1274