small fixes to external potential