fixed strange build problems