Fixed bugs in the head and client

File wasn't found and Client stopped premature