Fixed edge spreading bug.