I found mistake pic is running again. Forgot to return out of one of the functions. Thanks anyway.