bugfix added self.user_data assignment

Added self.user_data default assignment.