Removed duplicate addition of preferences

Fixed #367