finally fixed a stupid error