correcting span problem nvaigation