small fix to external potential