fixed a couple of bugs on customize