Fixed server side and some texture bugs