fix bug in bond angle computation which was messing up all dipoles and E-field