fixed some stupid compile errors