Fixed issue with embedded resource