Fixed incorrect use of attributes instead of parameters. Signed-off-by: YRabbit <rabbit@yrabbit.cyou>