fix typo on constructor method
Fix notice, cast user value
use cap instead user level
Fix typo