HEAD is now properly set, but application does not behave as expected.