Use integer instead of int for @var
Make sur the status is set according to #1558