fixed form clearing bug