fixed comp. bug