Fixed all resource calls to not break after minifying