Frigs first.. logical error