Fix bug in electric dot