fixed a problem with a user-routine