span in code bug