Fixed incorrect span usage