clear frontend error on code load