fixed GUI bug