BUG IN company set up for cost centre

We have seen inconsistency for company setup for default cost centre, i am setting up cost centre for company A but in cost centre it is not allowing and by default it is showing last company created cost centre there search or selection option should be based on company code and not on last company created.

Also this affecting my sales / purchase invoice saving inspite of setting up session default it does not allow.

.