Fixed class method decorator