Unable to find the bug why accuracy is only 0.5