fixed bug spencer found
fixed bug