Removed duplicate addition of preferences

Fixed #367
Merge pull request #368 from k22mak/issue-367

Removed duplicate addition of preferences