fixes bug in userAction