fixed something in res building classes