resolved issues with ewald parameters