Fixed multiple calls to 'fnStateChange'