Improve code

Fix static const variables initialization, which caused instant crashes.