Fixed the static setter to comply with code guidelines