Fixed small generic issue in user_logic