Fix to get resource from class path