Resolved issue when amending after property set and after method where the last statement was an if statement. In this case the amendment was incorrectly nested under the if statement.