fixed a similar bug in signs code