fix bug in paintstore js